#/bin/sh

device=$1

item=$2

get_stat="ceph osd tree"

case $item in

        up_down)

            $get_stat |grep "\b$device\b"|awk '{print $4}'

            ;;
esac
